/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Emergency Medical Service Providers Provider Codes</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S20343 (C-0-T19465-S20343-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getEmergencyMedicalServiceProvidersProviderCodes()
 * @model extendedMetaData="name='EmergencyMedicalServiceProvidersProviderCodes'"
 * @generated
 */
public enum EmergencyMedicalServiceProvidersProviderCodes implements Enumerator {
	/**
	 * The '<em><b>140000000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_140000000X_VALUE
	 * @generated
	 * @ordered
	 */
	_140000000X(0, "_140000000X", "140000000X"),

	/**
	 * The '<em><b>146N00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_146N00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_146N00000X(1, "_146N00000X", "146N00000X"),

	/**
	 * The '<em><b>146M00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_146M00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_146M00000X(2, "_146M00000X", "146M00000X"),

	/**
	 * The '<em><b>146L00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_146L00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_146L00000X(3, "_146L00000X", "146L00000X"),

	/**
	 * The '<em><b>146D00000X</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_146D00000X_VALUE
	 * @generated
	 * @ordered
	 */
	_146D00000X(4, "_146D00000X", "146D00000X");

	/**
	 * The '<em><b>140000000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>140000000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_140000000X
	 * @model literal="140000000X"
	 * @generated
	 * @ordered
	 */
	public static final int _140000000X_VALUE = 0;

	/**
	 * The '<em><b>146N00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>146N00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_146N00000X
	 * @model literal="146N00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _146N00000X_VALUE = 1;

	/**
	 * The '<em><b>146M00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>146M00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_146M00000X
	 * @model literal="146M00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _146M00000X_VALUE = 2;

	/**
	 * The '<em><b>146L00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>146L00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_146L00000X
	 * @model literal="146L00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _146L00000X_VALUE = 3;

	/**
	 * The '<em><b>146D00000X</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>146D00000X</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_146D00000X
	 * @model literal="146D00000X"
	 * @generated
	 * @ordered
	 */
	public static final int _146D00000X_VALUE = 4;

	/**
	 * An array of all the '<em><b>Emergency Medical Service Providers Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final EmergencyMedicalServiceProvidersProviderCodes[] VALUES_ARRAY =
		new EmergencyMedicalServiceProvidersProviderCodes[] {
			_140000000X,
			_146N00000X,
			_146M00000X,
			_146L00000X,
			_146D00000X,
		};

	/**
	 * A public read-only list of all the '<em><b>Emergency Medical Service Providers Provider Codes</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<EmergencyMedicalServiceProvidersProviderCodes> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Emergency Medical Service Providers Provider Codes</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EmergencyMedicalServiceProvidersProviderCodes get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EmergencyMedicalServiceProvidersProviderCodes result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Emergency Medical Service Providers Provider Codes</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EmergencyMedicalServiceProvidersProviderCodes getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			EmergencyMedicalServiceProvidersProviderCodes result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Emergency Medical Service Providers Provider Codes</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static EmergencyMedicalServiceProvidersProviderCodes get(int value) {
		switch (value) {
			case _140000000X_VALUE: return _140000000X;
			case _146N00000X_VALUE: return _146N00000X;
			case _146M00000X_VALUE: return _146M00000X;
			case _146L00000X_VALUE: return _146L00000X;
			case _146D00000X_VALUE: return _146D00000X;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EmergencyMedicalServiceProvidersProviderCodes(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //EmergencyMedicalServiceProvidersProviderCodes
